From: Ævar Arnfjörð Bjarmason Date: Thu, 7 Apr 2005 18:14:31 +0000 (+0000) Subject: * Using wfTimestampNow() and only allowing people to save make signitures with X-Git-Tag: 1.5.0alpha1~358 X-Git-Url: http://git.cyclocoop.org/%22.%24match%5B1%5D.%22?a=commitdiff_plain;h=3b0ae6de8aababbb2a42ce61034de03e1e6a7386;p=lhc%2Fweb%2Fwiklou.git * Using wfTimestampNow() and only allowing people to save make signitures with the timestamp set as the default in the wgContLang file (I'll be crucified for this) --- diff --git a/includes/Parser.php b/includes/Parser.php index f82209bea0..0775293a38 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -2596,8 +2596,13 @@ class Parser $oldtz = getenv( 'TZ' ); putenv( 'TZ='.$wgLocaltimezone ); } - /* Note: this is an ugly timezone hack for the European wikis */ - $d = $wgContLang->timeanddate( date( 'YmdHis' ), false ) . + + /* Note: This is the timestamp saved as hardcoded wikitext to + * the database, we use $wgContLang here in order to give + * everyone the same signiture and use the default one rather + * than the one selected in each users preferences. + */ + $d = $wgContLang->timeanddate( wfTimestampNow(), false, false) . ' (' . date( 'T' ) . ')'; if ( isset( $wgLocaltimezone ) ) { putenv( 'TZ='.$oldtzs );